package net.office.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class StaffInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StaffInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(Integer value) {
            addCriterion("staff_Id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_Id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(Integer value) {
            addCriterion("staff_Id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_Id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(Integer value) {
            addCriterion("staff_Id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_Id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<Integer> values) {
            addCriterion("staff_Id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_Id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNull() {
            addCriterion("staff_no is null");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNotNull() {
            addCriterion("staff_no is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNoEqualTo(String value) {
            addCriterion("staff_no =", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotEqualTo(String value) {
            addCriterion("staff_no <>", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThan(String value) {
            addCriterion("staff_no >", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_no >=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThan(String value) {
            addCriterion("staff_no <", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThanOrEqualTo(String value) {
            addCriterion("staff_no <=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLike(String value) {
            addCriterion("staff_no like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotLike(String value) {
            addCriterion("staff_no not like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoIn(List<String> values) {
            addCriterion("staff_no in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotIn(List<String> values) {
            addCriterion("staff_no not in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoBetween(String value1, String value2) {
            addCriterion("staff_no between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotBetween(String value1, String value2) {
            addCriterion("staff_no not between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentIsNull() {
            addCriterion("staff_department is null");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentIsNotNull() {
            addCriterion("staff_department is not null");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentEqualTo(String value) {
            addCriterion("staff_department =", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotEqualTo(String value) {
            addCriterion("staff_department <>", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentGreaterThan(String value) {
            addCriterion("staff_department >", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("staff_department >=", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentLessThan(String value) {
            addCriterion("staff_department <", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentLessThanOrEqualTo(String value) {
            addCriterion("staff_department <=", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentLike(String value) {
            addCriterion("staff_department like", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotLike(String value) {
            addCriterion("staff_department not like", value, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentIn(List<String> values) {
            addCriterion("staff_department in", values, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotIn(List<String> values) {
            addCriterion("staff_department not in", values, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentBetween(String value1, String value2) {
            addCriterion("staff_department between", value1, value2, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffDepartmentNotBetween(String value1, String value2) {
            addCriterion("staff_department not between", value1, value2, "staffDepartment");
            return (Criteria) this;
        }

        public Criteria andStaffPostIsNull() {
            addCriterion("staff_post is null");
            return (Criteria) this;
        }

        public Criteria andStaffPostIsNotNull() {
            addCriterion("staff_post is not null");
            return (Criteria) this;
        }

        public Criteria andStaffPostEqualTo(String value) {
            addCriterion("staff_post =", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotEqualTo(String value) {
            addCriterion("staff_post <>", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostGreaterThan(String value) {
            addCriterion("staff_post >", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostGreaterThanOrEqualTo(String value) {
            addCriterion("staff_post >=", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostLessThan(String value) {
            addCriterion("staff_post <", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostLessThanOrEqualTo(String value) {
            addCriterion("staff_post <=", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostLike(String value) {
            addCriterion("staff_post like", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotLike(String value) {
            addCriterion("staff_post not like", value, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostIn(List<String> values) {
            addCriterion("staff_post in", values, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotIn(List<String> values) {
            addCriterion("staff_post not in", values, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostBetween(String value1, String value2) {
            addCriterion("staff_post between", value1, value2, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPostNotBetween(String value1, String value2) {
            addCriterion("staff_post not between", value1, value2, "staffPost");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoIsNull() {
            addCriterion("staff_photo is null");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoIsNotNull() {
            addCriterion("staff_photo is not null");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoEqualTo(String value) {
            addCriterion("staff_photo =", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoNotEqualTo(String value) {
            addCriterion("staff_photo <>", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoGreaterThan(String value) {
            addCriterion("staff_photo >", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_photo >=", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoLessThan(String value) {
            addCriterion("staff_photo <", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoLessThanOrEqualTo(String value) {
            addCriterion("staff_photo <=", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoLike(String value) {
            addCriterion("staff_photo like", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoNotLike(String value) {
            addCriterion("staff_photo not like", value, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoIn(List<String> values) {
            addCriterion("staff_photo in", values, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoNotIn(List<String> values) {
            addCriterion("staff_photo not in", values, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoBetween(String value1, String value2) {
            addCriterion("staff_photo between", value1, value2, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffPhotoNotBetween(String value1, String value2) {
            addCriterion("staff_photo not between", value1, value2, "staffPhoto");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNull() {
            addCriterion("staff_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNotNull() {
            addCriterion("staff_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNameEqualTo(String value) {
            addCriterion("staff_name =", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotEqualTo(String value) {
            addCriterion("staff_name <>", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThan(String value) {
            addCriterion("staff_name >", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_name >=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThan(String value) {
            addCriterion("staff_name <", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("staff_name <=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLike(String value) {
            addCriterion("staff_name like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotLike(String value) {
            addCriterion("staff_name not like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameIn(List<String> values) {
            addCriterion("staff_name in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotIn(List<String> values) {
            addCriterion("staff_name not in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameBetween(String value1, String value2) {
            addCriterion("staff_name between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("staff_name not between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffSexIsNull() {
            addCriterion("staff_sex is null");
            return (Criteria) this;
        }

        public Criteria andStaffSexIsNotNull() {
            addCriterion("staff_sex is not null");
            return (Criteria) this;
        }

        public Criteria andStaffSexEqualTo(Integer value) {
            addCriterion("staff_sex =", value, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexNotEqualTo(Integer value) {
            addCriterion("staff_sex <>", value, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexGreaterThan(Integer value) {
            addCriterion("staff_sex >", value, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_sex >=", value, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexLessThan(Integer value) {
            addCriterion("staff_sex <", value, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexLessThanOrEqualTo(Integer value) {
            addCriterion("staff_sex <=", value, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexIn(List<Integer> values) {
            addCriterion("staff_sex in", values, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexNotIn(List<Integer> values) {
            addCriterion("staff_sex not in", values, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexBetween(Integer value1, Integer value2) {
            addCriterion("staff_sex between", value1, value2, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffSexNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_sex not between", value1, value2, "staffSex");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayIsNull() {
            addCriterion("staff_birthday is null");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayIsNotNull() {
            addCriterion("staff_birthday is not null");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayEqualTo(Date value) {
            addCriterionForJDBCDate("staff_birthday =", value, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_birthday <>", value, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_birthday >", value, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_birthday >=", value, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayLessThan(Date value) {
            addCriterionForJDBCDate("staff_birthday <", value, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_birthday <=", value, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayIn(List<Date> values) {
            addCriterionForJDBCDate("staff_birthday in", values, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_birthday not in", values, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_birthday between", value1, value2, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffBirthdayNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_birthday not between", value1, value2, "staffBirthday");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardIsNull() {
            addCriterion("staff_id_card is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardIsNotNull() {
            addCriterion("staff_id_card is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardEqualTo(String value) {
            addCriterion("staff_id_card =", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardNotEqualTo(String value) {
            addCriterion("staff_id_card <>", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardGreaterThan(String value) {
            addCriterion("staff_id_card >", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardGreaterThanOrEqualTo(String value) {
            addCriterion("staff_id_card >=", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardLessThan(String value) {
            addCriterion("staff_id_card <", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardLessThanOrEqualTo(String value) {
            addCriterion("staff_id_card <=", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardLike(String value) {
            addCriterion("staff_id_card like", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardNotLike(String value) {
            addCriterion("staff_id_card not like", value, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardIn(List<String> values) {
            addCriterion("staff_id_card in", values, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardNotIn(List<String> values) {
            addCriterion("staff_id_card not in", values, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardBetween(String value1, String value2) {
            addCriterion("staff_id_card between", value1, value2, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffIdCardNotBetween(String value1, String value2) {
            addCriterion("staff_id_card not between", value1, value2, "staffIdCard");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateIsNull() {
            addCriterion("staff_entry_date is null");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateIsNotNull() {
            addCriterion("staff_entry_date is not null");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateEqualTo(Date value) {
            addCriterionForJDBCDate("staff_entry_date =", value, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_entry_date <>", value, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_entry_date >", value, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_entry_date >=", value, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateLessThan(Date value) {
            addCriterionForJDBCDate("staff_entry_date <", value, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_entry_date <=", value, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateIn(List<Date> values) {
            addCriterionForJDBCDate("staff_entry_date in", values, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_entry_date not in", values, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_entry_date between", value1, value2, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffEntryDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_entry_date not between", value1, value2, "staffEntryDate");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkIsNull() {
            addCriterion("staff_is_work is null");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkIsNotNull() {
            addCriterion("staff_is_work is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkEqualTo(Integer value) {
            addCriterion("staff_is_work =", value, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkNotEqualTo(Integer value) {
            addCriterion("staff_is_work <>", value, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkGreaterThan(Integer value) {
            addCriterion("staff_is_work >", value, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_is_work >=", value, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkLessThan(Integer value) {
            addCriterion("staff_is_work <", value, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkLessThanOrEqualTo(Integer value) {
            addCriterion("staff_is_work <=", value, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkIn(List<Integer> values) {
            addCriterion("staff_is_work in", values, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkNotIn(List<Integer> values) {
            addCriterion("staff_is_work not in", values, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkBetween(Integer value1, Integer value2) {
            addCriterion("staff_is_work between", value1, value2, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffIsWorkNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_is_work not between", value1, value2, "staffIsWork");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateIsNull() {
            addCriterion("staff_quit_date is null");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateIsNotNull() {
            addCriterion("staff_quit_date is not null");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateEqualTo(Date value) {
            addCriterionForJDBCDate("staff_quit_date =", value, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_quit_date <>", value, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_quit_date >", value, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_quit_date >=", value, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateLessThan(Date value) {
            addCriterionForJDBCDate("staff_quit_date <", value, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_quit_date <=", value, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateIn(List<Date> values) {
            addCriterionForJDBCDate("staff_quit_date in", values, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_quit_date not in", values, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_quit_date between", value1, value2, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffQuitDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_quit_date not between", value1, value2, "staffQuitDate");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordIsNull() {
            addCriterion("staff_password is null");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordIsNotNull() {
            addCriterion("staff_password is not null");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordEqualTo(String value) {
            addCriterion("staff_password =", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordNotEqualTo(String value) {
            addCriterion("staff_password <>", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordGreaterThan(String value) {
            addCriterion("staff_password >", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("staff_password >=", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordLessThan(String value) {
            addCriterion("staff_password <", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordLessThanOrEqualTo(String value) {
            addCriterion("staff_password <=", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordLike(String value) {
            addCriterion("staff_password like", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordNotLike(String value) {
            addCriterion("staff_password not like", value, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordIn(List<String> values) {
            addCriterion("staff_password in", values, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordNotIn(List<String> values) {
            addCriterion("staff_password not in", values, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordBetween(String value1, String value2) {
            addCriterion("staff_password between", value1, value2, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andStaffPasswordNotBetween(String value1, String value2) {
            addCriterion("staff_password not between", value1, value2, "staffPassword");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion("role_Id is null");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion("role_Id is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIdEqualTo(Integer value) {
            addCriterion("role_Id =", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotEqualTo(Integer value) {
            addCriterion("role_Id <>", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThan(Integer value) {
            addCriterion("role_Id >", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("role_Id >=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThan(Integer value) {
            addCriterion("role_Id <", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
            addCriterion("role_Id <=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIn(List<Integer> values) {
            addCriterion("role_Id in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotIn(List<Integer> values) {
            addCriterion("role_Id not in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdBetween(Integer value1, Integer value2) {
            addCriterion("role_Id between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("role_Id not between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleNameIsNull() {
            addCriterion("role_name is null");
            return (Criteria) this;
        }

        public Criteria andRoleNameIsNotNull() {
            addCriterion("role_name is not null");
            return (Criteria) this;
        }

        public Criteria andRoleNameEqualTo(String value) {
            addCriterion("role_name =", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotEqualTo(String value) {
            addCriterion("role_name <>", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameGreaterThan(String value) {
            addCriterion("role_name >", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameGreaterThanOrEqualTo(String value) {
            addCriterion("role_name >=", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameLessThan(String value) {
            addCriterion("role_name <", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameLessThanOrEqualTo(String value) {
            addCriterion("role_name <=", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameLike(String value) {
            addCriterion("role_name like", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotLike(String value) {
            addCriterion("role_name not like", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameIn(List<String> values) {
            addCriterion("role_name in", values, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotIn(List<String> values) {
            addCriterion("role_name not in", values, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameBetween(String value1, String value2) {
            addCriterion("role_name between", value1, value2, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotBetween(String value1, String value2) {
            addCriterion("role_name not between", value1, value2, "roleName");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdIsNull() {
            addCriterion("staff_direct_super_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdIsNotNull() {
            addCriterion("staff_direct_super_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdEqualTo(Integer value) {
            addCriterion("staff_direct_super_Id =", value, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdNotEqualTo(Integer value) {
            addCriterion("staff_direct_super_Id <>", value, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdGreaterThan(Integer value) {
            addCriterion("staff_direct_super_Id >", value, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_direct_super_Id >=", value, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdLessThan(Integer value) {
            addCriterion("staff_direct_super_Id <", value, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_direct_super_Id <=", value, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdIn(List<Integer> values) {
            addCriterion("staff_direct_super_Id in", values, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdNotIn(List<Integer> values) {
            addCriterion("staff_direct_super_Id not in", values, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_direct_super_Id between", value1, value2, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_direct_super_Id not between", value1, value2, "staffDirectSuperId");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoIsNull() {
            addCriterion("staff_direct_super_no is null");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoIsNotNull() {
            addCriterion("staff_direct_super_no is not null");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoEqualTo(String value) {
            addCriterion("staff_direct_super_no =", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoNotEqualTo(String value) {
            addCriterion("staff_direct_super_no <>", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoGreaterThan(String value) {
            addCriterion("staff_direct_super_no >", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_direct_super_no >=", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoLessThan(String value) {
            addCriterion("staff_direct_super_no <", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoLessThanOrEqualTo(String value) {
            addCriterion("staff_direct_super_no <=", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoLike(String value) {
            addCriterion("staff_direct_super_no like", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoNotLike(String value) {
            addCriterion("staff_direct_super_no not like", value, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoIn(List<String> values) {
            addCriterion("staff_direct_super_no in", values, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoNotIn(List<String> values) {
            addCriterion("staff_direct_super_no not in", values, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoBetween(String value1, String value2) {
            addCriterion("staff_direct_super_no between", value1, value2, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDirectSuperNoNotBetween(String value1, String value2) {
            addCriterion("staff_direct_super_no not between", value1, value2, "staffDirectSuperNo");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameIsNull() {
            addCriterion("staff_diract_super_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameIsNotNull() {
            addCriterion("staff_diract_super_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameEqualTo(String value) {
            addCriterion("staff_diract_super_name =", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameNotEqualTo(String value) {
            addCriterion("staff_diract_super_name <>", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameGreaterThan(String value) {
            addCriterion("staff_diract_super_name >", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_diract_super_name >=", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameLessThan(String value) {
            addCriterion("staff_diract_super_name <", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameLessThanOrEqualTo(String value) {
            addCriterion("staff_diract_super_name <=", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameLike(String value) {
            addCriterion("staff_diract_super_name like", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameNotLike(String value) {
            addCriterion("staff_diract_super_name not like", value, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameIn(List<String> values) {
            addCriterion("staff_diract_super_name in", values, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameNotIn(List<String> values) {
            addCriterion("staff_diract_super_name not in", values, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameBetween(String value1, String value2) {
            addCriterion("staff_diract_super_name between", value1, value2, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffDiractSuperNameNotBetween(String value1, String value2) {
            addCriterion("staff_diract_super_name not between", value1, value2, "staffDiractSuperName");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdIsNull() {
            addCriterion("staff_create_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdIsNotNull() {
            addCriterion("staff_create_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdEqualTo(Integer value) {
            addCriterion("staff_create_Id =", value, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdNotEqualTo(Integer value) {
            addCriterion("staff_create_Id <>", value, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdGreaterThan(Integer value) {
            addCriterion("staff_create_Id >", value, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_create_Id >=", value, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdLessThan(Integer value) {
            addCriterion("staff_create_Id <", value, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_create_Id <=", value, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdIn(List<Integer> values) {
            addCriterion("staff_create_Id in", values, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdNotIn(List<Integer> values) {
            addCriterion("staff_create_Id not in", values, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_create_Id between", value1, value2, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_create_Id not between", value1, value2, "staffCreateId");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeIsNull() {
            addCriterion("staff_create_time is null");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeIsNotNull() {
            addCriterion("staff_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeEqualTo(Date value) {
            addCriterion("staff_create_time =", value, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeNotEqualTo(Date value) {
            addCriterion("staff_create_time <>", value, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeGreaterThan(Date value) {
            addCriterion("staff_create_time >", value, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("staff_create_time >=", value, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeLessThan(Date value) {
            addCriterion("staff_create_time <", value, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("staff_create_time <=", value, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeIn(List<Date> values) {
            addCriterion("staff_create_time in", values, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeNotIn(List<Date> values) {
            addCriterion("staff_create_time not in", values, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeBetween(Date value1, Date value2) {
            addCriterion("staff_create_time between", value1, value2, "staffCreateTime");
            return (Criteria) this;
        }

        public Criteria andStaffCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("staff_create_time not between", value1, value2, "staffCreateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}